home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / NEWSOFT / AUGUST / SFTP / !sFTP / !help < prev    next >
Text File  |  1997-06-28  |  16KB  |  495 lines

  1. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  2. +                                          +
  3. +    !sFTP  -  Simple to use FTP program     (c) C.Carpenter 1996-1997    +
  4. +                                      +
  5. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  6.  
  7.  
  8. This is a simple to use freeware FTP command line client for RISCOS - based on the Linux version of FTP.  
  9.  
  10. There are likely, as always, to still be some bugs in the program - but on 
  11. the whole it works and I am continually striving to improve it.  
  12.  
  13. If you have any sugestions for improvements, or bug reports - please 
  14. email me : sftp@nocturnal.demon.co.uk so I can make the necessary changes.
  15.  
  16. Please bear in mind that not all FTP servers support all the available
  17. client commands - and that to test this client on anything other than 
  18. localhost and !Deltanet requires me to be on-line and costing me money :-(  
  19.  
  20. sFTP is known to work with :-
  21.  
  22. freenet (v1.xx & 2.xx) and the Acorn stack - but not Termite. 
  23. It is best used in conjunction with !Zap - although it will work with 
  24. other editors.  It is also StrongArm compatible and known to work 
  25. through Wingate.
  26.  
  27.  
  28.  
  29. Please note :-  The method used for password encryption is not very secure
  30.         and I strongly advise you not to store profiles with 
  31.         passwords in them on a multi-user system.
  32.  
  33.  
  34. ++++++++++++++++++++
  35. +                  +
  36. +  Instructions    +
  37. +                  +
  38. ++++++++++++++++++++
  39.  
  40.  
  41. To start :
  42. ~~~~~~~~~~
  43.  
  44. Using the FrontEnd :
  45.  
  46. Load !sFTP, then click select over the icon bar icon.  
  47. Enter the details of the server you wish to connect to and click 'connect'.
  48.  
  49. or
  50.  
  51. Running from a taskwindow:
  52.  
  53. Simply type 'sftp' - and providing !sftp and an editor (preferably !zap) 
  54. has been seen by the filer, sftp should run.  
  55. Use the open command to initiate an FTP session.
  56. In its simplest form type 
  57.  
  58.     open hostname
  59. or    open ip-number
  60.  
  61. and once the address has been resolved, you will be prompted for the userid
  62. to use and then the password.  For general access to public FTP servers
  63. use the userid 'anonymous' or 'ftp' and supply your email address as the 
  64. password.
  65.  
  66. Alternatively you can secify some or all the parts on the same line.  
  67. e.g.
  68.     open ftp.barnet.ac.uk anonymous 
  69.     open ftp.barnet.ac.uk anonymous userid@emailaddress /pub/Acorn
  70.  
  71. (** see section on command line switches **)
  72.  
  73. Once connected you can save the profile information by typing
  74. 'save <profilename>' and then thereafter you can type 'open <profilename>'
  75. to quickly connect back to the same site and directory.
  76.  
  77. To automatically run a script file containing a list of commands :
  78. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  79.  
  80. Add the command line switch ^file where file is the name of the script
  81. file containing the commands. In the event sFTP fails to find the file as
  82. specified - it will look in the <sftp$dir>.Scripts directory.  Each command 
  83. in the script file must be on a new line.
  84.  
  85. Lines starting with a ';' are treated as comments and are ignored.
  86.  
  87.  
  88. Listing directories :
  89. ~~~~~~~~~~~~~~~~~~~~~
  90. Type 'ls' to list the filenames in the current directory.  To see a
  91. full list of file information, type 'dir' or 'ls -l'. 
  92.  
  93. To Change directories :
  94. ~~~~~~~~~~~~~~~~~~~~~~~
  95. Type 'cd dirname', where dirname is the name of the directory that you 
  96. wish to change into.  If you want to change into a directory several 
  97. levels down, then put a '/' betweem each directory name 
  98. e.g. if you were in the dir 'pub' on ftp.barnet then you could type :
  99.     cd Acorn/sftp
  100. will change you in one go in the sftp directory.
  101.  
  102. cd ..   and   cdup   will both change you into the parent of the current 
  103. directory.
  104.  
  105. To Download a file :
  106. ~~~~~~~~~~~~~~~~~~~~
  107. Type 'get filename'.
  108. At the moment the transfer information is only displayed correctly if you 
  109. are using !Zap - but I'm working on solutions for other text editors.
  110.  
  111. If it for some reason crashes partway through a download, you can reconnect
  112. and then use the 'reget' command to continue downloading from the point at
  113. which it had reached before the crash (providing the server you are 
  114. FTPing to supports the REST command).
  115.  
  116. This client supports 'mget' and if you remember to turn off prompt mode 
  117. first by typing 'prompt' then you can leave it to download multiple files 
  118. by answering 'a' to the first mget (y/n/a) ? question. 
  119.  
  120. Set bell on by typing 'bell' and it will even beep to let you know when its 
  121. finished downloading a file.
  122.  
  123. To upload a file :
  124. ~~~~~~~~~~~~~~~~~~
  125. Either switch to /incoming and put the file there, or log into a server
  126. for which you already have an account, using a valid userid and password,
  127. then 'put filename'.
  128.  
  129.  
  130.  
  131. Syslogging levels :
  132. ~~~~~~~~~~~~~~~~~~~
  133.     0    No Logging (Turns off logging altogether)
  134.     1    Startup
  135.     1    Shutdown
  136.     10    Connections
  137.     10    Server timeout
  138.     15    Client timeout
  139.     20    Get transfer speed
  140.     30    Put transfer speed
  141.     80      Changing the syslogging level
  142.     128    Command parameters
  143.     130    Replies from the server
  144.     135    User input
  145.     140    Error messages
  146.     150    Info messages        
  147.     180    Entering a function
  148.     
  149. There are two ways to affect the syslog level for sftp:
  150.  
  151. 1. You can alter the default value in the config box from the iconbar menu.  
  152.    This however does not take effect till the next time you run the frontend.
  153.  
  154. 2. Once connected you can type the command 'debug' followed by a number between
  155.    0 and 255.  This takes effect immediately but will affect all currently 
  156.    running sftp sessions.  There is no way to have different levels for 
  157.    different concurrently running sessions.
  158.  
  159. If you are experiencing a bug and can reproduce it - then please turn syslogging on to level 255 and send me the resultant log file.  
  160.  
  161.  
  162.  
  163. The Frontend
  164. ~~~~~~~~~~~~
  165.  
  166. It seems there were 3 types of local dir capability wanted by users :-  
  167.   - Those who liked the original idea of a fixed download dir inside the 
  168.     sFTP application.  
  169.   - Those who wanted to be able to specify different download directories
  170.     for different profiles.
  171.   - Those who wanted to be able to use the current CSD and to be able to 
  172.     affect this using other utilities whilst running sFTP.
  173.     
  174. The new frontend layout is an attempt to cater for all 3 types of needs. 
  175.  
  176. 'Affect global CSD' - if you select this then if/when you change the 
  177.                       downloads directory - sFTP also changes the actual
  178.                       CSD.  And when you put or get - sFTP will use the 
  179.                       CSD.  The CSD can then be affected from outside sFTP.
  180.                       
  181.                     - if this is not selected, then changing the 
  182.                       downloads directory using lcd will not affect the
  183.                       actual CSD and when you put or get - sFTP will
  184.                       use the pathname held in its internal variable.
  185.                  
  186.  
  187.  
  188. Command line switches :
  189. ~~~~~~~~~~~~~~~~~~~~~
  190.  
  191. -A        Select ASCII mode.              (Default is binary)
  192. -Q              Turn verbose mode off.          (Default is on)
  193. -B              Turn bell on.                  (Default off)
  194. -N        Turn off prompt mode.             (Default on)
  195. -R        Turn on unique remote filenames.    (Default off)
  196. -L        Turn on unique local filenames.        (Default off)
  197. -G        Turn on get newer files only.        (Default off)
  198. -P              Turn on put newer files only.           (Default off)
  199. -C        Affect the global CSD with local directory changes.
  200. -D        Open downloads directory once connected.
  201. -X        Client timeout in value. (How long to wait when expecting a
  202.         server response before giving up). 
  203. -S        Turn off syslogging.
  204. ^filename    Use a script file containing any of the below commands.
  205.  
  206.  
  207.  
  208.  
  209.  
  210. Here is a list of the commands I have implemented so far :-
  211.  
  212. Recognised commands :
  213. ~~~~~~~~~~~~~~~~~~~
  214.  
  215. Anything in [ ] is optional.
  216.  
  217. !command [args]        Carry out a shell command. e.g. !cat
  218. *command [args]        A synonym for !
  219.  
  220. abort            To abort the current download.
  221.  
  222. account [passwd]    Supply a supplemental password required by  
  223.             some remote systems for access to resources
  224.               once a login has been successfully completed.
  225.  
  226. append local-file [remote-file]
  227.             Appends the local file to an existing file on the
  228.             remote server.
  229.  
  230. asc            Set the file transfer type to ASCII.
  231. ascii            A synonym for asc.
  232.  
  233. bell            Turn on bell notification when end of file transfer.
  234.             default = nobell.  (To turn off, type 'nobell'.)
  235.             
  236. binary            Set the file transfer type to BINARY.
  237. bin            A synonym for binary.  This is the default for each
  238.             sftp session, unless you were in ascii mode when
  239.             you saved a profile.
  240.  
  241. bye            A synonym for quit.
  242.  
  243. cd remote-directory    Change directory on the remote server to 
  244.             remote-directory.
  245.             
  246.  
  247. cdup            Change directory on the remote server to the parent 
  248.             of the current directory on the remote server.
  249. cd ..            A synonym for cdup.
  250.  
  251. chmod mode filename    Change the permission modes of the file-name on the
  252.              remote system to mode.
  253.         
  254. close            End the current ftp session.
  255.  
  256. debug nnn        Sets the syslogging level to nnn.  Where 0<=nnn>256. 
  257.             Setting debug to 0 turns off syslogging.
  258.  
  259. delete filespec        where filespec can be a single filename, multiple
  260.             filenames by using the wildcard '*' or a directory
  261.             name.  
  262.             
  263.             This attempts to delete the file(s) specified from the
  264.             remote server.  If a directory is specified - then 
  265.             sFTP attempts to delete the entire directory 
  266.             including all subdirectories.
  267.  
  268. dir [remote_directory]    A synonym for ls with the -l switch.
  269.  
  270. downloads        Opens the currently selected downloads directory.
  271.  
  272. dput local-directory [remote-directory]
  273.             Attempts to put a whole directory including any
  274.             subdirectories to the remote host.
  275.  
  276. exit            A synonym for quit.
  277.  
  278. get remote-file [local-file]     Retrieve the remote-file and store it on 
  279.                 the local machine.
  280.                 
  281. getnewer        Sets a flag as on or off.  If on, then files will 
  282.             only be downloaded if they have a newer date and 
  283.             timestamp.
  284.  
  285. help [command]        Display help on sFTP client commands.
  286.  
  287. ? [command]        A synonym for help.
  288.  
  289. logout            A synonym for close.
  290.  
  291. ls [remote-filespec] [-l]
  292.              List the current remote server directory.
  293.              The switch -l lists the full dir information.
  294.              
  295. lcd local-directory    Change directory on the currently selected hard disk
  296.             to local-directory.
  297.             
  298. lcdup            Change directory on the currently selected hard disk
  299.             to parent of the current directory.
  300.             
  301. lcd ..            A synonym for lcdup.
  302. lcd ^                   A synonym for lcdup.
  303.  
  304. ldir [local-directory]    A synonym for lls with the -l switch.
  305.  
  306. lls [local-directory] [-l]    
  307.             List the current local drive directory.
  308.  
  309. lpwd            Display the name of the current local hard disk
  310.             directory on the local machine where downloads
  311.             will be saved.
  312.             
  313. lunique            Toggles unique local filenames on and off. (Takes
  314.              precedence over 'prompt').
  315.  
  316. mget remote-filespec    Retrieve multiple files matching the filespec.
  317.                 Each time you initiate an mget command, you will 
  318.                 be asked 'mget filename (y/n/a)?'.
  319.                 
  320.                 By typing 'a' you won't be asked that question
  321.                 again and it will go on and get all the files in
  322.                 the filespec.  If prompt mode is on - you will 
  323.                 however be asked to confirm overwrites if the file
  324.                 already exists.
  325.  
  326. mkdir directory-name    Attempts to create a new directory on the remote 
  327.             server.
  328.  
  329. mput local-filespec    Put multiple files matching the filespec.
  330.  
  331. nobell            Turn off bell notification when end of file 
  332.             transfer.
  333.             Default = nobell.  (To turn on again, type 'bell).
  334.  
  335. open remote-host-addr [login-id [password [remote-dir [local-dir]]]]
  336.               Starts ftp session with remote server and optional
  337.               parameters.  NB : the remote-host-addr is first
  338.               checked to see if it matches a profile name - which
  339.               takes precedence.
  340.  
  341. open profile        Starts ftp session with a presaved profile 
  342.             configuration. 
  343.             
  344. profiles        Lists the available pre-saved profiles.
  345.              
  346. prompt            Toggles confirmation of overwrites on and off.
  347.  
  348. put local-file [remote-file]    Upload specified file.
  349.  
  350. putnewer        Sets a flag as on or off.  If on, then files will 
  351.             only be uploaded only if they have a newer date and 
  352.             timestamp.
  353.  
  354. pwd            Display the name of the current working directory 
  355.             on the remote machine.
  356.             
  357.             
  358. quit            Exit the program closing all sessions.
  359.  
  360. quote string        Sends the contents of 'string' direct to the control
  361.              channel.
  362.  
  363. read remote-file    Attempts to display the remote-file in a text 
  364.             editing window.  Useful for e.g. to view index 
  365.             files.
  366.  
  367. recv remote-file [local-file]    A synonym for get.
  368.  
  369. reget remote-file [local-file]     Attempts to get the rest of a partially
  370.                 downloaded file and append it to what 
  371.                 you've got so far.  Useful if something has
  372.                 gone wrong - particularly if its a large 
  373.                 file you're attempting to download.
  374.  
  375. rename from to        Rename the file 'from' on the remote server, to the
  376.             filename 'to'.
  377.  
  378. rhelp [command]        Display what ftp commands the remote server has
  379.             currently implemented.
  380.  
  381. rmdir directory-name    Remove an empty directory name on the remote server.
  382.  
  383. rstatus            Show the current status of the remote server.
  384.  
  385. runique            Toggles unique storing of files on the remote 
  386.             server. (Only if the remote server allows for this).
  387.  
  388. save profile        Saves the current configuration, using the name 
  389.             'profile' to identify it.
  390.  
  391. send local-file [remote-file]    A synonym for put.
  392.  
  393. site arg1 arg2 ...    The arguments specified are sent, verbatim, to the 
  394.             remote FTP server as a SITE command.
  395.  
  396. size file-name        Return size of file-name on remote machine.
  397.  
  398. status            Show the current status of sFTP.
  399.  
  400. system            Show the type of operating system running on the 
  401.             remote machine.
  402.             
  403. user user-name [password]    Log into a remote system as a different 
  404.                 userid when you are already connected to a                 remote host.  The userid must already exist.
  405.             
  406. verbose            Toggles display of certain server messages on and off.        
  407.             
  408. version            Displays the current version number.
  409.  
  410. view remote-file    A synonym for read.
  411.  
  412.  
  413.  
  414.  
  415. Thanks to :
  416. ~~~~~~~~~
  417.  
  418. I would like to dedicate this program to Jogu - without who's help, 
  419. support, snippets of code, and consistent bug testing it would not have got 
  420. off the drawing board - or indeed be in its current operational state.
  421.  
  422. A special thanks to Reuben Thomas for consistent bug reporting and helpful 
  423. suggestions.
  424.  
  425. Thanks also to Juggler, vulch, willy, toolbox and Chris Latham for various snippets of code and helpful suggestions, Doggysoft for permission to use "WimpExt and WimpExtLib", Stewart Brodie for libresolv, Jonathan Coxhead for OSLib and Olly Betts for the Line Editor module.
  426.  
  427.  
  428.  
  429. Bug reports / Comments :
  430. ~~~~~~~~~~~~~~~~~~~~~~
  431.  
  432. If you discover a bug with !sFTP, or have a useful comment, improvement or 
  433. suggestion,  please e-mail them to :-
  434.  
  435.                       sftp@nocturnal.demon.co.uk
  436.  
  437. If it is a bug report, please state the nature of the problem and 
  438. the FTP site and directory where the problem occurs (especially important
  439. if the problem is reproduceable).
  440.   
  441. Better still - send me a copy of the taskwindow display (if you can) 
  442. so that I can see exactly what happened.  Also - send me a copy of the syslog - preferably with logging set to 255.
  443.  
  444.  
  445.  
  446. Known bugs :
  447. ~~~~~~~~~~
  448.  
  449. Only one outstanding that I know of currently :- do not attempt to ftp to 
  450. ftp.uni-stuttgart.de using freenet v1.xx as freenet itself will crash and 
  451. you will have to reboot your computer.  Not something I can do anything 
  452. about.  I'm convinced its a freenet bug.  Freenet v2.xx does not suffer 
  453. from this.
  454.  
  455.  
  456. Licence :
  457. ~~~~~~~
  458.  
  459. !sFTP is © Copyright 1996-1997 Carol Carpenter and is released as freeware.
  460.  
  461. Permission is granted to use !sFTP on the understanding that this use is
  462. entirely at your own risk. I accept no liability whatsoever for any loss
  463. or damage arising from the use of !sFTP nor do I make any guarantee that 
  464. it is fit for any purpose.  !sFTP maybe freely distributed providing all 
  465. files are present and unchanged.  No charges may be made (other than 
  466. reasonable postage/packing costs) for distribution.  It should not be 
  467. distributed as part of any packages without the authors express permission.
  468.  
  469. I hope you find it useful.
  470.  
  471.  
  472. Mailing list :
  473. ~~~~~~~~~~~~
  474.  
  475. If you want to be emailed when a new version of sFTP is available - then
  476. subscribe to the mailing list by sending an email to : 
  477.  
  478.             maiser@barnet.ac.uk 
  479. with :            
  480.                subscribe sftp 
  481.  
  482. in the body of the message.
  483.  
  484.  
  485.  
  486. Latest Version :
  487. ~~~~~~~~~~~~~~
  488.  
  489. The latest version is always obtainable from :  
  490.  
  491.          ftp://ftp.barnet.ac.uk/pub/Acorn/sftp
  492.         
  493.               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  494.                        © Carol Carpenter 1996-1997
  495.